/*
*   AppDelegate.h
*   ___PROJECTNAME___
*
*   Created by ___FULLUSERNAME___ on ___DATE___.
*   Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
*
*/

#ifndef  _AppDelegate_h_
#define  _AppDelegate_h_

#include "CCApplication.h"

namespace ___game_namespace___ {

////////////////////////////////////////////////////////
//
/** ZmAppDelegate
 *  LID library app delegate
*/
////////////////////////////////////////////////////////

class  AppDelegate : private cocos2d::CCApplication
{

public:
	AppDelegate();
	virtual ~AppDelegate();

    /**
    @brief	Implement for initialize OpenGL instance, set source path, etc...
    */
    virtual bool initInstance();

    /**
    @brief	Implement CCDirector and CCScene init code here.
    @return true    Initialize success, app continue.
    @return false   Initialize failed, app terminate.
    */
    virtual bool applicationDidFinishLaunching();

    /**
    @brief  The function be called when the application enter background
    @param  the pointer of the application
    */
    virtual void applicationDidEnterBackground();

    /**
    @brief  The function be called when the application enter foreground
    @param  the pointer of the application
    */
    virtual void applicationWillEnterForeground();
};

} // namespace ___game_namespace___

#endif // _AppDelegate_h_

